package com.changpay.zywy.mvp.contract

import com.changpay.zywy.base.IModel
import com.changpay.zywy.base.IPresenter
import com.changpay.zywy.base.IView
import com.changpay.zywy.bean.HttpResult
import io.reactivex.Observable

interface ForgetPasswordContract {


    interface View : IView {
        fun getSuccess(data: Any)
        fun reviseSuccess()
    }

    interface Presenter : IPresenter<View> {

        fun getCode(phone: String, type: String)
        fun revisePassword(phone: String,code:String,password:String,comfitPassword:String)
    }

    interface Model : IModel {
        fun getCode(phone: String, type: String) : Observable<HttpResult<Any>>
        fun revisePassword(phone: String,code:String,password:String,comfitPassword:String):Observable<HttpResult<Any>>
    }
}